home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / gnu_oleo_1_2_2.lha / oleo-1.2.2 / font.h < prev    next >
C/C++ Source or Header  |  1993-03-03  |  2KB  |  77 lines

  1. #ifndef FONTH
  2. #define FONTH
  3.  
  4. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this software; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19. /*  t. lord    Sat Sep 12 13:46:16 1992    */
  20. #include "global.h"
  21. #include "line.h"
  22.  
  23. struct font_memo
  24. {
  25.   char *name;            /* X11 font name */
  26.   char *psname;
  27.   double scale;            /* ratio of def pt. size to this */
  28.   struct font_memo *next;
  29.   int id_memo;            /* This is used by oleofile. */
  30. };
  31.  
  32. extern struct font_memo *font_list;
  33.  
  34. /*
  35.  * Font spec syntax:
  36.  * X name(w/wild cards), postscript name, size
  37.  *
  38.  * The x and postscript names may be blank. The size may be omitted
  39.  * altogether (it defaults to 1).
  40.  *
  41.  * Define font takes an additional name:
  42.  *      oleo-name, xname, psname, size
  43.  *
  44.  * Intern also understands just 
  45.  *    oleo-name
  46.  * for previously defined names. 
  47.  */
  48.  
  49. #ifdef __STDC__
  50. extern void init_fonts (void);
  51. extern void flush_fonts (void);
  52. extern struct font_memo *intern_font (char *spec);
  53. extern void define_font (char * spec);
  54. extern void set_area_font (struct rng *, struct font_memo *);
  55. extern struct font_memo *default_font (void);
  56. extern void set_ps_font_cmd (char *);
  57. extern void set_line_to_nice_font_name (struct line *, struct font_memo *);
  58. #ifdef HAVE_X11_X_H
  59. extern void set_x_default_font (char *);
  60. #endif
  61. #else
  62. extern void init_fonts ();
  63. extern void flush_fonts ();
  64. extern struct font_memo *intern_font ();
  65. extern void define_font ();
  66. extern void set_area_font ();
  67. extern struct font_memo *default_font ();
  68. extern void query_fonts ();
  69. extern void set_ps_font_cmd ();
  70. extern void set_line_to_nice_font_name ();
  71. #ifdef HAVE_X11_X_H
  72. extern void set_x_default_font ();
  73. #endif
  74. #endif
  75.  
  76. #endif
  77.